import 'package:flutter/material.dart';
import 'package:flutter_app/components/layout.dart';

class MyInviteesPage extends StatefulWidget {
  @override
  _MyInviteesPageState createState() => _MyInviteesPageState();
}

class _MyInviteesPageState extends State<MyInviteesPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        brightness: Brightness.dark,
        backgroundColor: Colors.blueAccent[400],
        elevation: 0,
        title: MainTitle('我的邀请人'),
      ),
      body: Column(
        children: [
          Expanded(
              child: Container(
            width: MediaQuery.of(context).size.width,
            decoration: BoxDecoration(color: Colors.blueAccent[400]),
            child: Column(
              children: [
                SizedBox(
                  height: 30,
                ),
                Container(
                    width: 300,
                    padding: EdgeInsets.symmetric(horizontal: 15.0,vertical: 20.0),
                    decoration: BoxDecoration(
                        color: Colors.white,
                        borderRadius: BorderRadius.circular(6.0)),
                    child: Column(
                      children: [
                        Text('绑定您的邀请人代码',style: TextStyle(color: Colors.black,fontSize: 16,fontWeight: FontWeight.w500),),
                        SizedBox(
                          height: 15,
                        ),
                        TextField(
                            decoration: InputDecoration(
                                filled: true,
                                hintText: '请输入',
                                hintStyle: TextStyle(color: Colors.grey),
                                border: OutlineInputBorder(
                                    borderSide: BorderSide.none),
                                contentPadding:
                                    const EdgeInsets.symmetric(vertical: 0.0,horizontal: 15.0)
                            )
                        ),
                        SizedBox(
                          height: 20,
                        ),
                        FlatButton(
                            onPressed: () {},
                            textColor: Colors.white,
                            color: Colors.blueAccent,
                            shape: StadiumBorder(),
                            child: Text('绑定')
                        )
                      ],
                    )),
              ],
            ),
          ))
        ],
      ),
    );
  }
}
